<!-- 状态栏占位用 -->
<template>
	<view class="tool-status-bar" :style="{'height':height+'px'}"></view>
</template>

<script>
	export default {
		data() {
			return {
				height: 0
			}
		},
		mounted() {
			uni.getSystemInfo({
				success: (data) => {
					// console.log(data)
					// 将其赋值给this
					this.height = data.statusBarHeight;
				}
			})
		}
	}
</script>

<style scoped>
	.tool-status-bar {
		background-color: #999999;
	}
</style>
